package com.sogou.adm.bizdev.dataimport.job;

import java.util.ArrayList;
import java.util.Date;

import org.quartz.JobDataMap;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.scheduling.quartz.QuartzJobBean;

public class DumbJob extends QuartzJobBean {

	public DumbJob() {
	}

	@Override
	protected void executeInternal(JobExecutionContext context)
			throws JobExecutionException {
		String instName = context.getJobDetail().getName();
		String instGroup = context.getJobDetail().getGroup();

		JobDataMap dataMap = context.getJobDetail().getJobDataMap();

		String jobSays = dataMap.getString("jobSays");
		float myFloatValue = dataMap.getFloat("myFloatValue");
		ArrayList state = (ArrayList) dataMap.get("myStateData");
		state.add(new Date());

		System.err.println("Instance " + instName + " of DumbJob says: "
				+ jobSays);
		
	}
}

